<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<base href="<%=basePath%>">
<title>job detail</title>
<link href="daoepingcss/job.css" rel="stylesheet" type="text/css" />
<link href="daoepingcss/jobdetail.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/city.js"></script>
<script src="js/jquery.js" type="text/javascript"></script>
<script src="daoepingjs/script_common.js" type="text/javascript"></script>
<script src="js/Calendar.js"></script>

</head>
<script type="text/javascript">

$(document).ready(function() {
	selectData("selectsal","","findAllSalary","" );
	selectData("selectworkyear","","findAllWorkYear","" );
	selectData("selecteducational","","findAllEducational","" );
	selectData("selectworktype","","findAllWorkType","" );
	selectData("selectspecialty","","findAllSpecialty","" );
	selectData("selectcertificate","","findAllCertificate","" );
	selectData("selectlanguage","","findAllLanguage","" );
	selectData("selectjobtype","","findAllJobType","" );
	selectData("selectcompanyinfo","","findAllCompanyinfo","" );
	selectData("selectskill","","findAllSkill","" );
	getCity("findAllCity");
	BindCity('');
	inputData("inputcominfo","2","findCompanyinfoById","cop_companyinfo.id="+$('#selectcompanyinfo').attr('value') );
});


</script>
<body class="bg-eee" >
	<form action="addJobDetail.action" method="post" id="cjobdetail">
		<div id="header">
			<div id="datetime"></div>

		</div>


		<div class="detail_ad" id="jobinfot-1"></div>
		<div id="conDetail">
			<h1>
				Title: <input name="bzn_jobdescription.title" /> ${userid}
<input name="bzn_jobdescription.usr_user.id" value="1" type="hidden"/> 
			</h1>

			<h2>
				Company name: <select id="selectcompanyinfo"
					name="bzn_jobdescription.cop_companyinfo.id" onchange="inputData('inputcominfo','2','findCompanyinfoById','cop_companyinfo.id=' + $('#selectcompanyinfo').attr('value') );"></select>

			</h2>
			<div class="lnDet"></div>
			<table width="100%" border="0" cellspacing="0" cellpadding="0"
				class="tbPosi">
				<tr>
					<td class="wTit">Create Date</td>
					<td class="wCon"><input onclick="calendar()"
						name="bzn_jobdescription.createdDate" type="text" id="s2" /></td>
					<td class="wTit">Work Place</td>
					<td class="wCon"><p>

							<select id="ddlProvince" onchange="selectMoreCity(this)"
								name="bzn_jobdescription.bsc_city.bsc_region.id">
							</select> <select id="ddlCity" name="bzn_jobdescription.bsc_city.id">
								<option selected value="">城市</option>
							</select>
						</p></td>
				</tr>
				<tr>
					<td class="wTit">Work Year</td>
					<td class="wCon"><select id="selectworkyear"
						name="bzn_jobdescription.bsc_workyear.id"></select>年</td>
					<td class="wTit">Salary</td>
					<td class="wCon"><select id="selectsal"
						name="bzn_jobdescription.bsc_salary.id"></select>元/月
				</tr>
				<tr>
					<td class="wTit">educational</td>
					<td class="wCon"><select id="selecteducational"
						name="bzn_jobdescription.bsc_educational.id"></select>
					</td>
					<td class="wTit">numberOfRecruits</td>
					<td class="wCon"><input type="text"
						name="bzn_jobdescription.numberOfRecruits" value=""
						onkeyup="value=value.replace(/[^0-9_]/g,'')" /></td>
				</tr>
				<tr>
					<td class="wTit">Work Type</td>
					<td class="wCon"><select id="selectworktype"
						name="bzn_jobdescription.bsc_worktype.id"></select></td>
					<td class="wTit">Specialty</td>
					<td class="wCon"><select id="selectspecialty"
						name="bzn_jobdescription.bsc_specialty.id"></select></td>
				</tr>
				<tr>
					<td class="wTit">Certificate</td>
					<td class="wCon"><select id="selectcertificate"
						name="bzn_jobdescription.bsc_certificate.id"></select></td>
					<td class="wTit">Language</td>
					<td class="wCon"><select id="selectlanguage"
						name="bzn_jobdescription.bsc_language.id"></select></td>
				</tr>
				<tr>
					<td class="wTit">JobType</td>
					<td class="wCon"> <select
					id="selectjobtype" name="bzn_jobdescription.bsc_jobtype.id"></select></td>
					<td class="wTit">skill</td>
					<td class="wCon"><select id="selectskill"
						name="bzn_jobdescription.bsc_skill.id"></select></td>
				</tr>

			</table>
			<p>&nbsp;</p>
			<div class="titDetCon">职位描述</div>
			<div class="posDetCon">
				<textarea name="bzn_jobdescription.description" rows="12" cols="150"></textarea>
			</div>
			<p>&nbsp;</p>

			<h3 class="comp">公司简介</h3>
			<div class="comCon">

				<textarea  rows="5" cols="150" id="inputcominfo" disabled="disabled"></textarea>

			</div>
			<div class="advline mb-10" id="middle1">
				<a class="buttton" style="cursor: hand"
					onclick="mysubmit_cjobdetail()">submit</a>
			</div>

		</div>
	</form>
</body>


</html>
